package com.hello.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hello.common.core.annotation.Excel;
import com.hello.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 活动回复评论对象 activity_replies
 * 
 * @author hello
 * @date 2025-10-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ActivityReplies extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 回复ID（主键） */
    private Long replyId;

    /** 活动ID（关联activities表） */
    @Excel(name = "活动ID", readConverterExp = "关=联activities表")
    private Long activityId;

    /** 活动发布者用户ID */
    @Excel(name = "活动发布者用户ID")
    private Long activityUserId;

    /** 回复内容 */
    @Excel(name = "回复内容")
    private String replyContent;

    /** 回复图片URL列表（JSON数组） */
    @Excel(name = "回复图片URL列表", readConverterExp = "J=SON数组")
    private String replyImages;

    /** 回复者用户ID */
    @Excel(name = "回复者用户ID")
    private Long publisherId;

    /** 回复者头像URL */
    @Excel(name = "回复者头像URL")
    private String publisherAvatar;

    /** 回复者昵称 */
    @Excel(name = "回复者昵称")
    private String publisherNickname;

    /** 回复时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "回复时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date replyTime;

    /** 点赞数量 */
    @Excel(name = "点赞数量")
    private Long likeCount;

    /** 父回复ID（用于楼中楼回复，NULL表示一级回复） */
    @Excel(name = "父回复ID", readConverterExp = "用=于楼中楼回复，NULL表示一级回复")
    private Long parentReplyId;

    /** 回复状态（JSON，如是否显示、是否违规等） */
    @Excel(name = "回复状态", readConverterExp = "J=SON，如是否显示、是否违规等")
    private String status;

    /** 额外扩展数据（JSON格式） */
    @Excel(name = "额外扩展数据", readConverterExp = "J=SON格式")
    private String extraData;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setReplyId(Long replyId) 
    {
        this.replyId = replyId;
    }

    public Long getReplyId() 
    {
        return replyId;
    }
    public void setActivityId(Long activityId) 
    {
        this.activityId = activityId;
    }

    public Long getActivityId() 
    {
        return activityId;
    }
    public void setActivityUserId(Long activityUserId) 
    {
        this.activityUserId = activityUserId;
    }

    public Long getActivityUserId() 
    {
        return activityUserId;
    }
    public void setReplyContent(String replyContent) 
    {
        this.replyContent = replyContent;
    }

    public String getReplyContent() 
    {
        return replyContent;
    }
    public void setReplyImages(String replyImages) 
    {
        this.replyImages = replyImages;
    }

    public String getReplyImages() 
    {
        return replyImages;
    }
    public void setPublisherId(Long publisherId) 
    {
        this.publisherId = publisherId;
    }

    public Long getPublisherId() 
    {
        return publisherId;
    }
    public void setPublisherAvatar(String publisherAvatar) 
    {
        this.publisherAvatar = publisherAvatar;
    }

    public String getPublisherAvatar() 
    {
        return publisherAvatar;
    }
    public void setPublisherNickname(String publisherNickname) 
    {
        this.publisherNickname = publisherNickname;
    }

    public String getPublisherNickname() 
    {
        return publisherNickname;
    }
    public void setReplyTime(Date replyTime) 
    {
        this.replyTime = replyTime;
    }

    public Date getReplyTime() 
    {
        return replyTime;
    }
    public void setLikeCount(Long likeCount) 
    {
        this.likeCount = likeCount;
    }

    public Long getLikeCount() 
    {
        return likeCount;
    }
    public void setParentReplyId(Long parentReplyId) 
    {
        this.parentReplyId = parentReplyId;
    }

    public Long getParentReplyId() 
    {
        return parentReplyId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setExtraData(String extraData) 
    {
        this.extraData = extraData;
    }

    public String getExtraData() 
    {
        return extraData;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("replyId", getReplyId())
            .append("activityId", getActivityId())
            .append("activityUserId", getActivityUserId())
            .append("replyContent", getReplyContent())
            .append("replyImages", getReplyImages())
            .append("publisherId", getPublisherId())
            .append("publisherAvatar", getPublisherAvatar())
            .append("publisherNickname", getPublisherNickname())
            .append("replyTime", getReplyTime())
            .append("likeCount", getLikeCount())
            .append("parentReplyId", getParentReplyId())
            .append("status", getStatus())
            .append("extraData", getExtraData())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
